package javaCode.chapter09.codeblock_;

public class CodeBlockExercise01 {
    public static void main(String[] args) {
        System.out.println("total=" + Person.total); //in static block 100
        System.out.println("total=" + Person.total); //100
    }
}

class Person {
    public static int total;

    static {
        total = 100;
        System.out.println("in static block!");
    }
}
